package com.platform.service.impl;

import com.platform.dao.DynamicCateMappingDao;
import com.platform.entity.DynamicCateMappingEntity;
import com.platform.service.DynamicCateMappingService;
import com.platform.service.UserAssetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


/**
 * Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2018-08-22 00:42:26
 */
@Service("dynamicCateMappingService")
public class DynamicCateMappingServiceImpl implements DynamicCateMappingService {
    @Autowired
    private DynamicCateMappingDao cmsCatetgoryNewsDao;


    @Override
    public DynamicCateMappingEntity queryObject(Integer id) {
        return cmsCatetgoryNewsDao.queryObject(id);
    }

    @Override
    public List<DynamicCateMappingEntity> queryList(Map<String, Object> map) {
        return cmsCatetgoryNewsDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return cmsCatetgoryNewsDao.queryTotal(map);
    }

    @Override
    public int save(DynamicCateMappingEntity cmsCatetgoryNews) {
        return cmsCatetgoryNewsDao.save(cmsCatetgoryNews);
    }

    @Override
    public int update(DynamicCateMappingEntity cmsCatetgoryNews) {
        return cmsCatetgoryNewsDao.update(cmsCatetgoryNews);
    }

    @Override
    public int delete(Integer id) {
        return cmsCatetgoryNewsDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return cmsCatetgoryNewsDao.deleteBatch(ids);
    }
}
